package com.yserp.kpyw.service;

import com.yserp.kpyw.entity.TKpOrderEntity;
import com.yserp.kpyw.entity.TKpOrderOneEntity;
import com.yserp.kpyw.entity.TKpOrderOnejhEntity;
import com.yserp.kpyw.entity.TKpOrderjhEntity;
import org.jeecgframework.core.common.service.CommonService;

import java.util.List;

public interface TKpOrderjhServiceI extends CommonService{
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(TKpOrderjhEntity tKpOrder,
                        List<TKpOrderOnejhEntity> tKpOrderOnejhList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TKpOrderjhEntity tKpOrder,
                           List<TKpOrderOnejhEntity> tKpOrderOnejhList);
	public void delMain(TKpOrderjhEntity tKpOrder);
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(TKpOrderjhEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(TKpOrderjhEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(TKpOrderjhEntity t);
}
